<?php defined('SYSPATH') or die('No direct script access.');
/**
 * 支付宝支付 (即时到账)
 *
 * @author  Yellow.Chow <aultoale@gmail.com>
 * @version $Id: alipay.php 82 2012-03-19 02:35:48Z yellow.chow $
 * @license http://www.gnu.org/licenses/gpl-3.0.html    GPL 3
 */
class Payment_Adapter_Alipay extends Payment_Adapter_Alipay_Direct
{

    /**
     * 设置支付参数
     *
     * @param array $config
     * @return Payment_Adapter
     */
    public function set_config(array $config)
    {
        $this->_config = array_merge($this->_config, $config);

        $this->_config['service'] = 'create_direct_pay_by_user';

        return $this;
    }

    /**
     * 获取支付名称
     *
     * @return string
     */
    public function get_name()
    {
        return '支付宝即时到账';
    }

}